package com.myzl.coal.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.myzl.common.annotation.Excel;
import com.myzl.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * rfid记录对象 t_rfid
 *
 * @author myzl
 * @date 2023-06-13
 */
@Data
@TableName("t_rfid")
public class Rfid extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Integer deviceId;

    /** 筛板编号 */
    @Excel(name = "筛板编号")
    private String deviceNum;

    /** 在线状态 */
    private Integer status;
    /** 检测状态 */
    private Integer detectionStatus;
    /** 更换预警 */
    @TableField(exist = false)
    private Boolean police;
    /** 预警时间 */
    @TableField(exist = false)
    private Date policeTime;
    /** 离线时间 */
    @TableField(exist = false)
    private Date offLineTime;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date produceTime;

    /** 上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;
    /** 型号 */
    @Excel(name = "型号")
    private String model;
    @Excel(name = "序号")
    private Integer serialNumber;
    /** 安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installTime;

}
